// 查看是否收藏了帖子
export function collectPost (state) {
    return function (id) {
        if (!state.collectPosts || state.collectPosts.length === 0) {
            return null
        } else {
            return state.collectPosts.find(post => post.id === id)
        }
    }
}
